<script setup lang="ts">
import {useRoute} from "vue-router";
import {onMounted} from "vue";
import BasicLayout from "./layouts/BasicLayout.vue";
import 'normalize.css'
import {useUserStore} from "./stores/userStore.ts";
import {configureJavaLanguage} from "./components/code/config/java.config.ts";

const route = useRoute();
const userStore = useUserStore();

const doInit = () => {
  userStore.checkIsLogin();
  configureJavaLanguage()
};

onMounted(() => {
  doInit();
});
</script>

<template>
  <template v-if="route.meta.layout === 'blank'">
    <router-view/>
  </template>
  <template v-else>
    <BasicLayout/>
  </template>
</template>

<style scoped>
</style>
